UDD\DeviceDetector C

Total Complexity 123
Dependencies 26
Dependents 6
Total lines 962
Lines of code 390
Logical lines of code 212
Comment lines 295
Methods 43
Properties 16

Methods 43

Method Rating Maintainability Complexity Lines of code
parseDevice()
D
32 41 83
getInfoFromUserAgent()
A
46 7 40
isMobile()
S
51 7 29
parseBot()
S
55 5 20
parse()
S
58 5 16
__call()
S
59 5 13
isDesktop()
S
64 4 10
parseClient()
S
61 3 13
__construct()
S
56 2 20
usesMobileBrowser()
S
75 2 4
matchUserAgent()
S
67 2 7
getOs()
S
71 2 6
getClient()
S
71 2 6
getClientAttribute()
S
71 2 6
getDeviceName()
S
71 2 6
getYamlParser()
S
72 2 6
setUserAgent()
S
72 2 6
getCache()
S
72 2 6
getOsAttribute()
S
71 2 6
hasDesktopFragment()
S
76 1 4
hasAndroidMobileFragment()
S
76 1 4
hasAndroidTableFragment()
S
76 1 4
parseOs()
S
68 1 7
setYamlParser()
S
81 1 3
setCache()
S
81 1 3
getModel()
S
82 1 3
isParsed()
S
82 1 3
discardBotInformation()
S
81 1 3
addClientParser()
S
76 1 4
getClientParsers()
S
82 1 3
addDeviceParser()
S
80 1 3
getDeviceParsers()
S
82 1 3
addBotParser()
S
80 1 3
getBotParsers()
S
82 1 3
skipBotDetection()
S
81 1 3
getBot()
S
82 1 3
isBot()
S
80 1 3
isTouchEnabled()
S
76 1 4
getDevice()
S
82 1 3
getBrand()
S
80 1 3
getBrandName()
S
82 1 3
getUserAgent()
S
82 1 3
reset()
S
66 1 9